TriggerEvent

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class FenceEnteredEvent(val fenceId: UUID, val fenceName: String, val locations: List<LocationDetails>, val crossedFences: List<CrossedFence>, val applicationState: AppState, val eventTime: Instant = Instant.now(), val localEventTime: String = eventTime.toLocalEventTimeString()) : TriggerEvent, FenceEntered

A FenceEntered event is triggered when Zone entry conditions are met and an Entry trigger is registered in Canvas.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class FenceExitedEvent(val fenceId: UUID, val fenceName: String, val distance: Double, val distanceRequired: Double, val dwellTime: Long, val locations: List<LocationDetails>, val applicationState: AppState, val eventTime: Instant = Instant.now(), val localEventTime: String = eventTime.toLocalEventTimeString()) : TriggerEvent, FenceExited

A FenceExited event is triggered when the device leaves a zone and an Exit trigger is registered in Canvas.

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
open val eventTime: Instant
Link copied to clipboard
Link copied to clipboard

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)